﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WFcontrol
{
    public partial class keyboardEvent : Form
    {
        public keyboardEvent()
        {
            InitializeComponent();
        }

        private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
        {
          //  MessageBox.Show(e.KeyChar.ToString());
        }

        private void textBox1_KeyDown(object sender, KeyEventArgs e)
        {
            if(e.KeyValue==13)
            MessageBox.Show(this.textBox1.Text);
        }

        private void button1_Click(object sender, EventArgs e)
        {

        }
    }
}
